package com.testfileupload.uploadimg.design.decorate.example;

import com.testfileupload.uploadimg.design.decorate.SchoolReport;
//把动作的执行交给需要装饰的对象
public abstract class Decorator extends SchoolReport {
    //首先要知道是哪个成绩单
    private SchoolReport sc;
    //构造函数，传成绩单过来

    public Decorator(SchoolReport sc) {
        this.sc = sc;
    }
    //成绩单还是要被看到的

    @Override
    public void report() {
        this.sc.report();
    }
    //看完还是要给签名的

    @Override
    public void sign(String name) {
        this.sc.sign(name);
    }
}
